<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width: 100px;
            height: 100px;
            background-color: gold;
            border-radius: 10px;
            margin: 50px auto;
        }
        .div2{
            width: 28px;
            height: 28px;
            border-radius: 14px;
            background-color: rgb(255, 0, 0);
            line-height: 28px;
            text-align: center;
            position: relative;
            top: -14px;
            left: 85px;
            color: white;
        }
    </style>
</head>
<body>
    <div class="div1">
       <div class="div2">5</div>
    </div>
    
</body>
</html>